<?php

class Application_Model_DbTable_Usuario extends Zend_Db_Table_Abstract {

    protected $_name = 'usuarios';

    public function insert(array $data) {
        $date = new Zend_Date ( );
        $data["Created_at"] = $date->toString("YYYY-MM-dd hh:mm:ss");
        return parent::insert($data);
    }
    
    public function update(array $data, $where) {
        $date = new Zend_Date ( );
        $data["Updated_at"] = $date->toString("YYYY-MM-dd hh:mm:ss");        
        return parent::update($data, $this->getAdapter()
               ->quoteInto("Id = ?", $where));
    }
}